package com.pingan.haofang.searchcloud.monitor.constants;

import com.pingan.haofang.framework.common.functional.lang.control.base.annotation.Value;

/**
 * @author EX-SUNBIXIAO001
 * @date 2018/11/19
 * @since 1.0.0
 */
public enum SqlType {

    ERROR_QUERY(1, "错误sql"),

    SLOW_QUERY(2, "慢查询sql");


    public final int value;
    public final String desc;

    private SqlType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Value
    public int getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }
}
